package top.littlejiang.onlinexam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import top.littlejiang.onlinexam.common.base.BasePage;
import top.littlejiang.onlinexam.common.base.BaseService;
import top.littlejiang.onlinexam.entity.OlexamClass;

import java.util.List;

/**
 * <p>
 * 班级表 服务类
 * </p>
 *
 * @author chen
 * @since 2021-03-11
 */
public interface OlexamClassService extends BaseService<OlexamClass> {

    /**
     * 分页查询
     * @param page
     * @return IPage<OlexamClass>
     * @author chen
     * @since 2021/3/12 12:11
     */
    IPage<OlexamClass> getClassListPage(BasePage<OlexamClass> page);

    /**
     * 更新或增加
     * @param olexamClass
     * @return void
     * @author chen
     * @since 2021/3/12 13:00
     */
    void insertOrUpdate(OlexamClass olexamClass);

    /**
     * 获取所有未删除值
     * @return
     */
    List<OlexamClass> getAll();
}
